package com.bgds.sys.api.bean.mars.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: warm
 * @Description:
 * @Date: 2020/7/27 15:57
 * @Version: 1.0
 */
@ApiModel("波形数据返回类")
@Data
public class WaveDataDto {
    @ApiModelProperty("转速（采样时）")
    private Float speed;

    @ApiModelProperty("转换系数")
    @JsonProperty(value = "coef")
    private Float coEf;

    @ApiModelProperty("数据长度")
    private Integer length;

    @ApiModelProperty("采样频率")
    private Float rate;

    @ApiModelProperty("X 轴间隔")
    @JsonProperty(value = "xinterval")
    private Float xInterval;

    @ApiModelProperty("采样时间")
    @JsonProperty(value = "coltime")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date colTime;

    @ApiModelProperty("X 轴单位")
    @JsonProperty(value = "xunit")
    private String xUnit;

    @ApiModelProperty("Y 轴单位")
    @JsonProperty(value = "yunit")
    private String yUnit;

    @ApiModelProperty("波形数据")
    private List<Float> data;

    @ApiModelProperty("当前段")
    @JsonProperty(value = "current_span")
    private Integer currentSpan;

    @ApiModelProperty("是否为最后一段")
    @JsonProperty(value = "is_last")
    private Boolean isLast;
}